using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Configuration;

/// <summary>
/// Summary description for Config
/// </summary>
public class Config
{
    public static String _DB_ENCRYPTED_USERNAME = "";
    public static String _DB_ENCRYPTED_PASSWORD = "";

    //Project Test
    public static String _DB_USERNAME = "";
    public static String _DB_PASSWORD = "";

        public static String _DB_HOST = "";
    public static String _DB_NAME = "";
    public static String _DB_WINDOWS_ACCOUNT_AUTH = "FALSE";
    //Email
    public static String _SMTP_HOST = "";
    public static String _SMTP_AUTH_USERNAME = "";
    public static String _SMTP_AUTH_PASSWORD = "";
    public static String _EMAIL_SENDER = "";
    public static String _SSL = "";
    public static String _PORT = "";

    private static String _WED_NAME = "";

    
    private static String _LOGIN = "";

   
    //SPAM Email
    public static String _SMTP_SPAM_HOST = "";
    public static String _SMTP_SPAM_AUTH_USERNAME = "";
    public static String _SMTP_SPAM_AUTH_PASSWORD = "";
    public static String _EMAIL_SPAM_SENDER = "";
    public static String _SSL_SPAM = "";
    public static String _PORT_SPAM = "TRUE";

    //Capchar
    public static String _CAPCHAR_ISSHOW = string.Empty; //TRUE
	public Config()
	{
	}

    public static String CAPCHAR_ISSHOW
    {
        get { return _CAPCHAR_ISSHOW = ConfigurationSettings.AppSettings["CAPCHAR_ISSHOW"].ToString(); }
        set { _CAPCHAR_ISSHOW = value; } 
    }
    public static String DB_ENCRYPTED_USERNAME
    {
        get { return _DB_ENCRYPTED_USERNAME = ConfigurationSettings.AppSettings["DB_ENCRYPTED_USERNAME"].ToString(); }
        set { _DB_ENCRYPTED_USERNAME = value; }
    }

    public static String DB_ENCRYPTED_PASSWORD
    {
        get { return _DB_ENCRYPTED_PASSWORD = ConfigurationSettings.AppSettings["DB_ENCRYPTED_PASSWORD"].ToString(); }
        set { _DB_ENCRYPTED_PASSWORD = value; }
    }

    public static String DB_USERNAME
    {
        get { return _DB_USERNAME = ConfigurationSettings.AppSettings["DB_USERNAME"].ToString(); }
        set { _DB_USERNAME = value; }
    }

    public static String DB_PASSWORD
    {
        get { return _DB_PASSWORD = ConfigurationSettings.AppSettings["DB_PASSWORD"].ToString(); }
        set { _DB_PASSWORD = value; }
    }

    public static String DB_HOST
    {
        get { return _DB_HOST = ConfigurationSettings.AppSettings["DB_HOST"].ToString(); }
        set { _DB_HOST = value; }
    }
    public static String DB_NAME
    {
        get { return _DB_NAME = ConfigurationSettings.AppSettings["DB_NAME"].ToString(); }
        set { _DB_NAME = value; }
    }
    

    public static String SMTP_HOST
    {
        get { return _SMTP_HOST = ConfigurationSettings.AppSettings["SMTP_HOST"].ToString(); }
        set { _SMTP_HOST = value; }
    }

    public static String SMTP_AUTH_USERNAME
    {
        get { return _SMTP_AUTH_USERNAME = ConfigurationSettings.AppSettings["SMTP_AUTH_USERNAME"].ToString(); }
        set { _SMTP_AUTH_USERNAME = value; }
    }

    public static String SMTP_AUTH_PASSWORD
    {
        get { return _SMTP_AUTH_PASSWORD = ConfigurationSettings.AppSettings["SMTP_AUTH_PASSWORD"].ToString(); }
        set { _SMTP_AUTH_PASSWORD = value; }
    }

    public static String EMAIL_SENDER
    {
        get { return _EMAIL_SENDER = ConfigurationSettings.AppSettings["EMAIL_SENDER"].ToString(); }
        set { _EMAIL_SENDER = value; }
    }
    public static String PORT
    {
        get { return _PORT = ConfigurationSettings.AppSettings["PORT"].ToString(); }
        set { _PORT = value; }
    }
    public static String SSL
    {
        get { return _SSL = ConfigurationSettings.AppSettings["SSL"].ToString(); }
        set { _SSL = value; }
    }

    

    public static String SMTP_SPAM_HOST
    {
        get { return _SMTP_SPAM_HOST = ConfigurationSettings.AppSettings["SMTP_SPAM_HOST"].ToString(); }
        set { _SMTP_SPAM_HOST = value; }
    }

    public static String SMTP_SPAM_AUTH_USERNAME
    {
        get { return _SMTP_SPAM_AUTH_USERNAME = ConfigurationSettings.AppSettings["SMTP_SPAM_AUTH_USERNAME"].ToString(); }
        set { _SMTP_SPAM_AUTH_USERNAME = value; }
    }

    public static String SMTP_SPAM_AUTH_PASSWORD
    {
        get { return _SMTP_SPAM_AUTH_PASSWORD = ConfigurationSettings.AppSettings["SMTP_SPAM_AUTH_PASSWORD"].ToString(); }
        set { _SMTP_SPAM_AUTH_PASSWORD = value; }
    }

    public static String EMAIL_SPAM_SENDER
    {
        get { return _EMAIL_SPAM_SENDER = ConfigurationSettings.AppSettings["EMAIL_SPAM_SENDER"].ToString(); }
        set { _EMAIL_SPAM_SENDER = value; }
    }
    public static String SSL_SPAM
    {
        get { return _SSL_SPAM = ConfigurationSettings.AppSettings["SSL_SPAM"].ToString(); }
        set { _SSL_SPAM = value; }
    }

    public static String PORT_SPAM
    {
        get { return _PORT_SPAM = ConfigurationSettings.AppSettings["PORT_SPAM"].ToString(); }
        set { _PORT_SPAM = value; }
    }

    

    

    


    private static String _ConnectString = "";
    public static String ConnectString
    {
        get { return _ConnectString = WebConfigurationManager.ConnectionStrings["ConnectionString"].ToString(); }
        set { _ConnectString = value; }
    }
}
